import request from '@/utils/request';

// 后台管理子系统-数智融合-智库-数智融合-智库行业 全部查询
export function listSdkLmKbIndustry(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/list',
    method: 'post',
    params,
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库行业 分页查询
export function pageSdkLmKbIndustry(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/page',
    method: 'post',
    params,
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库行业 查询详情
export function getSdkLmKbIndustryInfo(id) {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/info/' + id,
    method: 'get',
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库行业 新增
export function addSdkLmKbIndustry(data) {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/add',
    method: 'post',
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库行业 修改
export function updateSdkLmKbIndustry(data) {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/edit',
    method: 'post',
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库行业 删除
export function delSdkLmKbIndustry(ids) {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/delete/' + ids,
    method: 'post',
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库行业 导入模板
export function tplSdkLmKbIndustry() {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/template',
    method: 'post',
    responseType: 'blob',
    filename: `数智融合-智库行业模版_${new Date().getTime()}.xlsx`,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库行业 导出
export function exportSdkLmKbIndustry(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKbIndustry/export',
    method: 'post',
    params,
    data,
    responseType: 'blob',
    filename: `数智融合-智库行业_${new Date().getTime()}.xlsx`,
    hmacReq: true,
    encryptReq: true,
  });
}
